package ch.fhnw.kosmonauten.client.gui;

import ch.fhnw.kosmonauten.model.User;

/**
*
* @author Oliver Freiermuth
*/
public class HelpAboutFrame extends javax.swing.JFrame {

   /**
    * Creates new form HelpAboutFrame
    */
   public HelpAboutFrame(User user) {
	   this.user = user;
	   this.toFront();
       this.setAlwaysOnTop(true);
	   initComponents();
       this.setVisible(true);
   }

   /**
    * This method is called from within the constructor to initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is always
    * regenerated by the Form Editor.
    */
   @SuppressWarnings("unchecked")
   // <editor-fold defaultstate="collapsed" desc="Generated Code">
   private void initComponents() {

       jScrollPane1 = new javax.swing.JScrollPane();
       jTextArea1 = new javax.swing.JTextArea();
       jScrollPane2 = new javax.swing.JScrollPane();
       jTextArea2 = new javax.swing.JTextArea();

       setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
       setTitle(user.displayValue("mw136"));

       jTextArea1.setColumns(20);
       jTextArea1.setFont(new java.awt.Font("Monospaced", 0, 14)); // NOI18N
       jTextArea1.setRows(5);
       jTextArea1.setText("I-Ching Application for FHNW\n\nVersion: Kosmonauten Service Release 1\nRequirements:\nAt least: Java RE 1.7\nAt least: MySQL Connector java 5.1.25 or newer has to be referenced in the build path!\n\nPlease connect to our online Database:\nrussianr.mysql.db.hostpoint.ch\nDatabasename: russianr_iching\nMySQL-Version: 5.5.29\nYou have to send your IP to mikhail.onoufrienko@students.fhnw.ch to get Access!\n\nVisit the documentation for more detailed help.\n\n(c) Copyright Kosmonauten contributors 2013.  All rights reserved.\n");
       jScrollPane1.setViewportView(jTextArea1);

       jTextArea2.setColumns(20);
       jTextArea2.setRows(5);
       jTextArea2.setText("Authors of this Application are the Cosmonauts:\nMikhail Onoufrienko\nOliver Freiermuth\nRisto Milani\nFabian Siegrist");
       jScrollPane2.setViewportView(jTextArea2);

       javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
       getContentPane().setLayout(layout);
       layout.setHorizontalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
           .addGroup(layout.createSequentialGroup()
               .addContainerGap()
               .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                   .addComponent(jScrollPane2)
                   .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 618, Short.MAX_VALUE))
               .addContainerGap())
       );
       layout.setVerticalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
           .addGroup(layout.createSequentialGroup()
               .addContainerGap()
               .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)
               .addGap(18, 18, 18)
               .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
               .addContainerGap())
       );

       pack();
   }// </editor-fold>

   // Variables declaration - do not modify
   private javax.swing.JScrollPane jScrollPane1;
   private javax.swing.JScrollPane jScrollPane2;
   private javax.swing.JTextArea jTextArea1;
   private javax.swing.JTextArea jTextArea2;
   private User user;
   // End of variables declaration
}
